package com.itheima.Service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.bean.Dish;
import com.itheima.dto.DishDto;

import java.util.List;

public interface DishService {


    /**
     * 根据分类id查询菜品数据
     * @param categoryId
     * @return
     */
    List<DishDto> findByCategoryId(long categoryId,int status);
    Page<DishDto> findPage(int page,int pageSize,String name);
    boolean addDish(DishDto dishDto);
    DishDto findById(Long id);
    boolean updateStatus(Long[] ids,int status);
    boolean updateDish(DishDto dishDto);
    int deleteByIds(Long[] ids);
}
